/**
 * 
 */
package com.tomagency.cyberlab.server.config;

import java.net.URL;
import java.util.Iterator;
import java.util.Properties;
import java.util.TreeSet;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Singleton;
import com.google.inject.Stage;
import com.google.inject.servlet.GuiceServletContextListener;
import com.google.inject.servlet.ServletModule;
import com.google.web.bindery.requestfactory.server.DefaultExceptionHandler;
import com.google.web.bindery.requestfactory.server.ExceptionHandler;
import com.google.web.bindery.requestfactory.server.ServiceLayerDecorator;
import com.tomagency.cyberlab.server.api.BubuApiServlet;
import com.tomagency.cyberlab.server.exports.BubuHandler;
import com.tomagency.cyberlab.server.exports.BubuHandlerImpl;
import com.tomagency.cyberlab.server.imports.TaopixFtpBackgroundScanner;
import com.tomagency.cyberlab.server.imports.TaopixFtpBackgroundScannerImpl;
import com.tomagency.cyberlab.server.request.InjectedRequestFactoryModule;
import com.tomagency.cyberlab.server.request.InjectedRequestFactoryServlet;
import com.tomagency.cyberlab.server.request.InjectedServiceLayerDecorator;
import com.tomagency.cyberlab.server.request.InjectingServiceLocator;
import com.tomagency.cyberlab.server.rpc.BelegServlet;
import com.tomagency.cyberlab.server.rpc.ScannerControlServlet;
import com.tomagency.cyberlab.server.rpc.UserServiceServlet;
import com.tomagency.cyberlab.server.util.LoggingUtil;
import com.tomagency.cyberlab.server.util.LoggingUtilImpl;
import com.tomagency.cyberlab.shared.rpc.ServletServicePfade;

import de.gammadata.mail.util.EmailBackgroundScanner;
import de.gammadata.mail.util.EmailFetcher;
import de.gammadata.mail.util.EmailScannerImpl;
import de.gammadata.persistence.PersistenceManager;
import de.gammadata.util.EmailFileSystemConfig;


/**
 * @author gfr
 *
 */
public class CyberlabGuiceServerConfigImpl extends GuiceServletContextListener {

//	public static final String log4jFile = "/META-INF/log4j.properties";
//	public static final String persistenceUnitName = "cyberlab";

	  @Override
	  protected Injector getInjector() {
		  
		  return ConfigProviderFactory.getInjector();
		  
	  }

}
